<template>
  <div id="indexContent">
    <el-card >
      <el-row class="myrow">
        <el-col :span="12">
          <!-- 左侧轮播图 -->
          <el-carousel :interval="4000" height="390px">
            <el-carousel-item v-for="(item, index) in MainCarouselImages" :key="index">
              <h3 class="small"><el-image :src="item.url"></el-image></h3>
            </el-carousel-item>
          </el-carousel>
        </el-col>
        <el-col :span="4">
          <!-- 右侧轮播图 -->
          <el-row>
            <el-col>
              <el-carousel
                :interval="4000"
                height="130px"
                indicator-position="none"
              >
                <el-carousel-item v-for="(item, index) in CarouselImages1" :key="index">
                  <h3 class="small"><el-image :src="item.url"></el-image></h3>
                </el-carousel-item> </el-carousel
            ></el-col>
          </el-row>
          <el-row>
            <el-col
              ><el-carousel
                :interval="4000"
                height="130px"
                indicator-position="none"
              >
                <el-carousel-item v-for="(item, index) in CarouselImages2" :key="index">
                  <h3 class="small"><el-image :src="item.url"></el-image></h3>
                </el-carousel-item>
              </el-carousel>
            </el-col>
          </el-row>
          <el-row>
            <el-col>
              <el-carousel
                :interval="4000"
                height="130px"
                indicator-position="none"
              >
                <el-carousel-item v-for="(item, index) in CarouselImages3" :key="index">
                  <h3 class="small"><el-image :src="item.url"></el-image></h3>
                </el-carousel-item> </el-carousel
            ></el-col>
          </el-row>
        </el-col>
      </el-row>
    </el-card>
  </div>
</template>

<script>
export default {
  name: "IndexContent",
  data() {
    return {
      MainCarouselImages: [
        {
          url:"https://img30.360buyimg.com/pop/s1180x940_jfs/t1/179933/10/14948/79278/60f947a8E9da428f6/acb62fb4d86aef82.jpg.webp"        },
        {
          url: "https://img30.360buyimg.com/pop/s1180x940_jfs/t1/188447/39/14228/82627/60f8cd82E3c500ecb/e1d74305b81ede70.jpg.webp",
        },
        {
          url: "https://img20.360buyimg.com/pop/s1180x940_jfs/t1/191230/2/13232/99121/60effb77E8071fef2/8ccd2baeb3f0abda.jpg.webp",
        }
      ],
      CarouselImages1:[
        {
          url: "https://imgcps.jd.com/img-cubic/creative_server_cia/v2/2000366/100021725646/FocusFullshop/CkRqZnMvdDEvMTg1MjcxLzI3LzEzMTk3LzQxNzE4OS82MGU2YTQyOUVkNzA4ZTUxMC9lMDgxN2ZiMDg4OTM3ZTMzLnBuZxIJMi10eV8wXzUzMAI47ot6QhUKEVRoaW5rUGFk56yU6K6w5pysEABCEwoP5YmB5omL562J5L2g5p2lEAFCEAoM56uL5Y2z5oqi6LStEAJCCgoG5LyY6YCJEAdYztOJzvQC/cr/s/q.jpg",
        },
        {
          url: "https://imgcps.jd.com/img-cubic/creative_server_cia/v2/2000366/6576193/FocusFullshop/CkRqZnMvdDEvMTk2MjMwLzI1LzEyMzQ4LzM4ODc1NC82MGU2YzM1MUU1ZjAwZThlZC82MzUzMjIyYjU0MzNiNjkxLnBuZxIJNC10eV8wXzU1MAI47ot6Qh0KGeWMl-m8jueUteawtOWjti_ng63msLTnk7YQAEIPCgs3NeaKmOenkuadgBABQhAKDOeri-WNs-aKoui0rRACQgoKBuenjeiNiRAHWMGwkQM/cr/s/q.jpg",
        },
        {
          url: "https://imgcps.jd.com/ling4/3548676/6Ziy6Zuo6Ziy5rGb5b-F5aSH/54iG5qy-5L2O6IezOS455YWD/p-5bd8253082acdd181d02fa55/c86447a0/cr/s/q.jpg",
        },
      ],
      CarouselImages2:[
        {
          url: "https://img11.360buyimg.com/pop/s1180x940_jfs/t1/192328/16/14271/94154/60f928a1E40e09a97/59fbc670b41fc284.jpg.webp",
        },
        {
          url: "https://imgcps.jd.com/ling4/100002688183/6Ziy6Zuo6Ziy5rGb5b-F5aSH/54iG5qy-5L2O6IezOS455YWD/p-5bd8253082acdd181d02f9ff/c90d22d8/cr/s/q.jpg",
        },
        {
          url: "https://imgcps.jd.com/ling4/3548676/6Ziy6Zuo6Ziy5rGb5b-F5aSH/54iG5qy-5L2O6IezOS455YWD/p-5bd8253082acdd181d02fa55/c86447a0/cr/s/q.jpg",
        },
      ],
      CarouselImages3:[
        {
          url: "https://imgcps.jd.com/img-cubic/creative_server_cia/v2/2000366/100021725646/FocusFullshop/CkRqZnMvdDEvMTg1MjcxLzI3LzEzMTk3LzQxNzE4OS82MGU2YTQyOUVkNzA4ZTUxMC9lMDgxN2ZiMDg4OTM3ZTMzLnBuZxIJMi10eV8wXzUzMAI47ot6QhUKEVRoaW5rUGFk56yU6K6w5pysEABCEwoP5YmB5omL562J5L2g5p2lEAFCEAoM56uL5Y2z5oqi6LStEAJCCgoG5LyY6YCJEAdYztOJzvQC/cr/s/q.jpg",
        },
        {
          url: "https://imgcps.jd.com/img-cubic/creative_server_cia/v2/2000366/6576193/FocusFullshop/CkRqZnMvdDEvMTk2MjMwLzI1LzEyMzQ4LzM4ODc1NC82MGU2YzM1MUU1ZjAwZThlZC82MzUzMjIyYjU0MzNiNjkxLnBuZxIJNC10eV8wXzU1MAI47ot6Qh0KGeWMl-m8jueUteawtOWjti_ng63msLTnk7YQAEIPCgs3NeaKmOenkuadgBABQhAKDOeri-WNs-aKoui0rRACQgoKBuenjeiNiRAHWMGwkQM/cr/s/q.jpg",
        },
        {
          url: "https://imgcps.jd.com/ling4/3548676/6Ziy6Zuo6Ziy5rGb5b-F5aSH/54iG5qy-5L2O6IezOS455YWD/p-5bd8253082acdd181d02fa55/c86447a0/cr/s/q.jpg",
        },
      ],
    };
  },
};
</script>

<style scoped>
.myrow{
  justify-content: center;
}
.el-carousel__item h3 {
  color: #475669;
  font-size: 18px;
  opacity: 0.75;
  line-height: 300px;
  margin: 0;
}

.el-carousel__item:nth-child(2n) {
  background-color: #99a9bf;
}

.el-carousel__item:nth-child(2n + 1) {
  background-color: #d3dce6;
}
</style>
